package cn.study.luckyadapter.controller;

import cn.study.common.annotation.ResponseResult;
import cn.study.luckyclient.api.IAcceptPrizeService;
import cn.study.luckyclient.dto.AcceptPrizeAddCmd;
import cn.study.luckyclient.dto.data.AcceptPrizeVo;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@ResponseResult
@AllArgsConstructor
@Slf4j
@RequestMapping("/v1/acceptPrize")
public class AcceptPrizeController {
    private final IAcceptPrizeService acceptPrizeService;
    @PostMapping("/add")
    public AcceptPrizeVo add(@RequestBody AcceptPrizeAddCmd acceptPrizeAddCmd){
        return acceptPrizeService.add(acceptPrizeAddCmd);
    }
}
